package d1130.r212.num27;

import java.util.ArrayList;
import java.util.List;

public class StuApp {
    static List<Student> list =new ArrayList<>();
    public static void main(String[] args) {
        //List<Student> list =new ArrayList<>();
        init();
       /* list.add(new Student("唐凯月","4555",90));
        list.add(new Student("彭真","45515",85));
        list.add(new Student("阎佳","42555",56));
        list.add(new Student("汪龙","45455",80));
        list.add(new Student("李安典","45585",78));
        list.add(new Student("李泽轩","45565",65));*/
        //Tools.getAvg(list);
        double ret=Tools.getAvg(list);
        System.out.println("平均分是"+ret);
        //不及格的学生
        List<Student> stus=Tools.getScore(list,80,90);
        System.out.println("80--90之间学生是"+stus);
        List<Student> stus1=Tools.getScore(list,70,80);
        System.out.println("70--80之间学生是"+stus1);



    }
    //数据初始化
    public static void init(){
        list.add(new Student("唐凯月","4555",90));
        list.add(new Student("彭真","45515",85));
        list.add(new Student("阎佳","42555",56));
        list.add(new Student("汪龙","45455",80));
        list.add(new Student("李安典","45585",78));
        list.add(new Student("李泽轩","45565",45));

    }
}

